//
//  BaseCollectionReusableView.m
//  WalkUp
//
//  Created by ONLY on 2016/11/27.
//  Copyright © 2016年 LPC. All rights reserved.
//

#import "BaseCollectionReusableView.h"

@implementation BaseCollectionReusableView
- (UIViewController*)viewController
{
    for (UIView* next = [self superview]; next; next = next.superview) {
        UIResponder* nextResponder = [next nextResponder];
        if ([nextResponder isKindOfClass:[UIViewController class]]) {
            return (UIViewController*)nextResponder;
        }
    }
    return nil;
}


@end
